//
//  RcyDoctorApplyCell.m
//  QuickCure1
//
//  Created by 饶辰烨 on 16/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "RcyDoctorApplyCell.h"

@implementation RcyDoctorApplyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (NSString *)getCurrnetTime
{
    NSDate *date = [NSDate date];
    NSDateFormatter *dateformatter = [[NSDateFormatter alloc] init];
    [dateformatter setDateFormat:@"YYYY-MM-dd"];
    NSString *dateStr = [dateformatter stringFromDate:date];
    NSString *currnetTime = [@"预约时间:" stringByAppendingString:dateStr];
    return currnetTime;
}
-(void)setDoctorModel:(YJDoctorsIfonModel *)doctorModel
{
    _doctorModel = doctorModel;
    self.lb_hospital.text = doctorModel.doctor_hospital_name;
    self.lb_doctor.text = doctorModel.doctor_name;
    self.lb_position.text = doctorModel.doctor_title_name;
    NSString *time = [self getCurrnetTime];
    self.lb_time.text = time;
    self.lb_patient.text = @"老司机";
    self.lb_illness.text = @"艾滋病";
    self.lb_state.text = @"就诊确认中";
    
}


@end
